/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aiaudio.database.tablegroup;

import aiaudio.lastfm.hbase.CannotCreateTableException;
import aiaudio.database.DatabaseStorage;
import aiaudio.database.tables.TableStructure;
import java.io.IOException;

/**
 *
 * @author nastya
 */
public class StatisticsTableGroup extends TableGroup{
    private String staticsticsTable = "statistics";
    
    public StatisticsTableGroup(String key) {
        super(key, false);
    }

    public String getStaticsticsTable() {
        return addKey(staticsticsTable);
    }

    public void setStaticsticsTable(String staticsticsTable) {
        this.staticsticsTable = staticsticsTable;
    }

    @Override
    public void create(DatabaseStorage storage) throws CannotCreateTableException, IOException {
        createTable(storage, getStaticsticsTable(), TableStructure.StatisticsTable);
    }
}
